package RemoteServerInterface;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import Po.Credits;
import Po.Discount;
import Po.Equivalent;
import Po.Manager;
import Po.Message;
import Po.Promotion;

public interface GeneralManagerServerInterface extends Remote{
	public Manager GeneralManagerLogin(Manager m)  throws RemoteException;
	public Message presentPromotion(Promotion promotion,int rank,int num) throws RemoteException;
	public Message addDiscountPromotion(Discount promotion) throws RemoteException;
	public Message addEquivalentPromotion(Equivalent promotion) throws RemoteException;
	public int[] getRanks() throws RemoteException;
	public Message modifyDiscountPromotion(Discount p) throws RemoteException;
	public Message modifyEquivalentPromotion(Equivalent p) throws RemoteException;
	public Message modeifyCredits(Credits c) throws RemoteException;
	public ArrayList<Promotion> getPromotions() throws RemoteException;
}
